<!--#include file="../main/top.asp" -->
<%
if str_query("page")="" then
	sql = "select * from cw_colleges order by editTime desc"
else
	sql = "select * from cw_colleges where "&request("field_name")&" like '%"&request("search_text")&"%' order by editTime desc"
end if
page_size = 20
paper = pageturner_handle(sql,"collegeId",page_size)
set rs = paper(0)
%>

<div class="function_title"><span class="t2"><img src="../images/dqwz.gif">当前位置：学院管理</span></div>
<div class="function_content">
<div class="addItem"><img src="../images/insert_icon.gif"><a href="adminCollegesAdd.asp">添加学院</a>
</div>

<form method="post" name="adminCollegesDel" id="adminCollegesDel" action="adminCollegesDel.asp?operation=listDel" >
<input type="submit" name="submit" value="删除选中记录" class="button" onClick="return p_del();"/>
<%=pageturner_show(paper(1),paper(2),paper(3),page_size,5)%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listTable">
  <tr class="title_line">
    <td><input type="checkbox" name="select_all" id="select_all" onClick="checkAll()" class="input_noborder"></td>
    <td>序号</td>
    <td>学院名称</td>
    <td>副书记姓名</td>
    <td>学院备注</td>
    <td>添加时间</td>
    <td>更新时间</td>
    <td>操作</td>
  </tr>
<%
i = 1
'循环显示出所有学院信息
do while not rs.eof
%>
  <tr>
  	<td><input type="checkbox" name="id" id="allid" value="<%=rs("collegeId")%>" class="input_noborder"></td>
    <td><%=i%></td>
    <td><%=rs("collegeName")%></td>
    <td><%=rs("collegeShuji")%></td>
    <td><%=rs("collegeRemark")%></td>
    <td><%=rs("addTime")%></td>
    <td><%=rs("editTime")%></td>
    <td><a href="adminCollegesEdit.asp?id=<%=rs("collegeId")%>">修改</a> <a href="adminCollegesDel.asp?id=<%=rs("collegeId")%>" onClick="return p_del();">删除</a></td>
  </tr>
<%
i=i+1
rs.movenext
loop
rs.close : set rs = nothing
conn.close : set conn=nothing
%>
</table>
<%=pageturner_show(paper(1),paper(2),paper(3),page_size,5)%>
<input type="submit" name="submit" value="删除选中记录" class="button" onClick="return p_del();"/>
</form>
</div>
<!--#include file="../main/bottom.asp" -->